-
Notifications
You must be signed in to change notification settings - Fork 566
Allow to append logs after a post processing hook #1025
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1025 +/- ##
==========================================
- Coverage 59.16% 59.15% -0.01%
==========================================
Files 80 80
Lines 6577 6576 -1
==========================================
- Hits 3891 3890 -1
Misses 2467 2467
Partials 219 219
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you just modify the logs from the receipt?
Yes, but the computation of the bloom needs to be moved down nevertheless. Do you prefer to have this ability implicitly and keep the previous signature? |
e4ba2bd
to
0b02641
Compare
Why? if you are updating the logs then you should also be updating the bloom during the post tx processing step. We'd need to change the state transition to do the following instead: if len(receipt.Logs) > 0 {
// Update transient block bloom filter
k.SetBlockBloomTransient(ctx, receipt.Bloom)
k.SetLogSizeTransient(ctx, uint64(txConfig.LogIndex)+uint64(len(receipt.Logs)))
} |
120b4c5
to
1cf2f36
Compare
okay, make sense. Published a minimal change version |
add changelog fix tests rename variable minimum change version
1cf2f36
to
f04c02a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes: #1024
Description
Add the ability to append log to the receipt after a tx post processing hook
more information on the issue ticket.
open for discussion
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)